package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 王同学
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
        private String id;
        private String number;
        private int status;
        private String userId;
        private String addressBookId;
        @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒")
        private LocalDateTime orderTime;
        @JsonFormat(pattern = "yyyy年MM月dd日HH时mm分ss秒")
        private LocalDateTime checkouttime;
        private int payMethod;
        private BigDecimal amount;
        private String remark;
        private String userName;
        private String phone;
        private String address;
        private String consignee;
}
